﻿using System;
using System.ComponentModel.DataAnnotations;
using SelfService.Model;
using WalkingTec.Mvvm.Core;
using SelfService.Model.Models;


namespace SelfService.ViewModel.SysPayVMs
{
    public partial class SysPaySearcher : BaseSearcher
    {
        [Display(Name = "姓名")]
        public string PatientName { get; set; }
        
        [Display(Name = "支付方式")]
        public Guid? PayTypeId { get; set; }
        
        [Display(Name = "外部订单号")]
        public String OutOrderNo { get; set; }
        
        [Display(Name = "交易流水号")]
        public String SerialsNumber { get; set; }
        
        [Display(Name = "支付状态")]
        public PayStatusEnum? PayStatus { get; set; }
        
        [Display(Name = "用途")]
        public PayUseEnum? Use { get; set; }
        
        [Display(Name = "使用状态")]
        public UseStatusEnum? UseStatus { get; set; }
        
        [Display(Name = "退款状态")]
        public RefundStatusEnum? RefundStatus { get; set; }
        
        [Display(Name = "支付时间")]
        public DateRange PayTime { get; set; }
        
        /// <summary>
        /// 是否同步
        /// </summary>
        [Display(Name = "是否同步")]
        public bool? IsSync { get; set; }

        [Display(Name = "是否同步")]
        public CommonYesOrNo? Sync
        {
            get => IsSync == null ? null : IsSync == true ? CommonYesOrNo.是 : CommonYesOrNo.否;
            set => IsSync = value == null ? null : value == CommonYesOrNo.是;
        }
        protected override void InitVM()
        {
        }
    }
}
